home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / glibc108.zip / glibc108 / hurd / hurdmalloc.h < prev    next >
C/C++ Source or Header  |  1994-05-25  |  575b  |  18 lines

  1. /* XXX this file is a tempoary hack.
  2.  
  3.    All hurd-internal code which uses malloc et al includes this file so it
  4.    will use the internal malloc routines _hurd_{malloc,realloc,free}
  5.    instead.  The "hurd-internal" functions are the cthreads version,
  6.    which uses vm_allocate and is thread-safe.  The normal user version
  7.    of malloc et al is the unixoid one using sbrk.
  8.  
  9.  */
  10.  
  11. extern void *_hurd_malloc (size_t);
  12. extern void *_hurd_realloc (void *, size_t);
  13. extern void _hurd_free (void *);
  14.  
  15. #define malloc    _hurd_malloc
  16. #define realloc    _hurd_realloc
  17. #define free    _hurd_free
  18.